#!/usr/bin/env bash

if [ $# -gt 1 ]; then
    echo -e "
Usage:
    dci [image name keyword]
"
    return 1
fi

if [ $# = 0 ]; then
    docker images --format "table {{.Repository}}\t{{.Tag}}"
else
    docker images --format "table {{.Repository}}\t{{.Tag}}" | grep --color=auto -i $*
fi

